home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!gate.demon.co.uk
- From: Mike Gooder <mike@entire.demon.co.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AmiTCP and threads
- Date: Tue, 9 Apr 96 13:23:58 GMT
- Organization: Microsoft free zone
- Message-ID: <9604091323.AA0009d@entire.demon.co.uk>
- References: <9604061820.AA00093@entire.demon.co.uk> <4k8u9p$2pa@news.xs4all.nl>
- X-NNTP-Posting-Host: gate.demon.co.uk
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- X-Mail2News-Path: relay-1.mail.demon.net!gate.demon.co.uk
-
- Yvon Rozijn (yrozijn@xs4all.nl) wrote:
- :
- : void __saveds yourprocess(void)
- : { struct Library *SocketBase;
- : ...
- : if(SocketBase=OpenLibrary("bsdsocket.library",0))
- : { ...
- : /* do your TCP stuff here */
- : somefunction(SocketBase,...)/* if you need to call other functions */
- : ...
- : CloseLibrary(SocketBase);
- : }
- : }
- :
- : void somefunction(struct Library *SocketBase,...)
- : { ...
- : }
- :
-
- Simple eh ! why didnt i think of it ?
- tried it and it all works fine
-
- Thanks to all who helped
-
- Mike
-